home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d21
/
dv_doswi.arc
/
DOSWINDO.DOC
< prev
next >
Wrap
Text File
|
1990-01-09
|
5KB
|
102 lines
SYSOP's DOS Window Scripts
I thought I might post my DOS (128K) window script file to show
others what may be done by combining DESQview scripts with some
of the standard DOS functions available to all in a DOS window.
This was spurred on by a note from a user on the BBS concerning
trouble using a TSR that does cut and paste (to the printer)
operations. While these TSRs may have additional features, I
normally use standard DESQview features with the help of some
scripts in my DOS window to transfer information marked by the
DESQview Mark function to the printer or a file of my choice.
In the process of setting up the file for the board, I also added
a couple other functions that came to mind for taking simple
notes, sending a form feed to the printer. The use of the Alt
keys are my taste, you may wish to define them to other
keys.These macros may not do exactly what you want or need, but
hopefully they will serve as inspiration to set up your own.
There are MANY other possibilities.
I run this in a 128K window, but if you didn't need to use the
SORT or READ (MORE) macros, you could probably get by in a 32K
window. Note, that if you do use the SORT and MORE utilities,
you will need to have a PATH set to these DOS files.
If you want to see what this looks like, just copy the file
D1-SCRIP.DVS into your DESQview directory and open up the DOS
(128K) window.
The Macros:
Alt-F1 - Brings up the display scripts menu. If you don't
mind stepping on the DOS command line editor funtion
for repeating one key at a time from the last
command (also available using the right arror),
you can redefine this key to F1 (easier to hit and
more intuitive).
Alt-P - Sends marked block to the printer. If your
printer is not set up to print well from column 1,
you can modify the macro to copy a file containing
the proper control codes to set the margin, then
transfer the marked block and then reset the
printer.
Alt-E - Sends a printer EJECT. It is conceivable to me
that some versions of DOS may not support the use
of ECHO used here (DOS 3.3). If this doesn't work
for you, use the COPY CON: method used in the
transfer to printer macro to send a ^L (actually
hit the Control-L), to the printer.
Alt-F - Puts marked info into a file name of your own
choosing. At the pause, just type in the filename
with path (if needed) and hit the Enter key. This
will be a strait ASCII file that may be imported
into programs that import ASCII.
Alt-N - A VERY limited note taker. Takes ONE line of
input and appends it to a file called NOTES.TXT.
You may need to modify the directory used to fit
your situation. Obviously, you probably have
something better than this, it is included only to
show that if your needs are simple, sometimes you
don't have to even buy a new program - make
something yourself.
Alt-R - Reads the NOTE.TXT file using the DOS MORE filter.
A better choice than MORE might be the shareware
product LIST, but I wanted to keep these macros
strictly DOS and DESQview.
Alt-S - Uses the DOS SORT filter to sort NOTE.TXT. Again,
very limited, but if you start your line with some
sortable field, the file will be sorted on that
field (as well as the rest of the line).
{255} - Autostart script that clears the screen and
displays REM message. On my real system, I use
this script to load the shareware program
DOSEDIT.COM. Could be made to do other setup
procedures as well. Note the use of the high
ASCII code 255 for the script. You get this by
holding down the Alt key and typing 255 on the
keypad. Using a high ASCII code for a autostart
script leaves all the normal keys available for
other use.
{222} Kill Scripts: As useful as macros can be, sometimes
they get in your way in a DOS window. For instance,
sometimes you may want to run a small utility in the
DOS window and if that utility uses some of the keys
defined above, you find your scripts getting in the
way. Activate Kill Scripts by holding down the Alt
key and typing 222 on the numeric keypad. This
loads in a script file called NULL.DVS which has no
macros at all other than its own {222} macro which
will re-load the D1-SCRIP.DVS file.
S. Young - SYSOP DESQview BBS.